package com.atguigu.gmall.list.client;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.list.client.impl.ListFeignClientImpl;
import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-list",path = "/api/list",fallback = ListFeignClientImpl.class)
public interface ListFeignClient {

    @GetMapping("/inner/do/es/goods//{skuId}")
    public Result doESGoodsSave(@PathVariable("skuId") Long skuId);

    @DeleteMapping("/remove/goods/from/elastic/search/{skuId}")
    public Result doESGoodsRemove(@PathVariable("skuId") Long skuId);

    @GetMapping("/inner/incr/goods/hot/score/{skuId}")
    public Result incrGoodsHotScore(@PathVariable("skuId") Long skuId);

    @PostMapping("/do/search")
    public Result doSearch(@RequestBody SearchParam searchParam);


}
